package com.hzncc.flowable_diboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
* 签到 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-06-12
* Copyright © MyCorp
*/

@TableName("mdl_sales_sign_in")
@Getter @Setter @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SalesSignIn extends BaseModel {
    private static final long serialVersionUID = 1473886228072759937L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 签到人
     */
    @TableField()
    private String uid;

    /**
     * 签到地点
     */
    @Length(max=100, message="签到地点长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String place;

    /**
     * 签到时间
     */
    @TableField()
    private LocalDateTime signInTime;

    /**
     * 详细地点
     */
    @Length(max=200, message="详细地点长度应小于200")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String detailPlace;

    /**
     * 备注
     */
    @Length(max=100, message="备注长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String remark;

    /**
     * 图片
     */
    @TableField()
    private String imgList;

    /**
     * 拜访客户
     */
    @Length(max=100, message="拜访客户长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String visitUser;


}